#
# phplus
#
#

module Ph
  
  class Setup
    
    attr_accessor :output_dir
    attr_accessor :application_name
    
    def initialize (setup_folder='html')
      @output_dir = setup_folder
      
      # Check Output Dir
      unless (File.directory? @output_dir) then raise "Invalid Output Directory" end 
      
    end
    
    # Saves page to specified filename using current setup folder.
    def savePage (page, filename)
      puts 'Generating ' + filename
      page.saveAs(@output_dir, filename)
      puts "[OK]\n"      
    end
  end
end